package com.wyl.customui.fragment

import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.wyl.customui.LoginKeyBoardView
import com.wyl.customui.R
import kotlinx.android.synthetic.main.fragment_login_keyboard_simple.*

private const val TAG = "LoginKeyboardSimple"

class LoginKeyboardSimpleFragment : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(R.layout.fragment_login_keyboard_simple, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        login_keyboard.onBackPress = {
            Log.d(TAG, "back")
        }
        login_keyboard.onNumPress = {
            Log.d(TAG, "input = $it")
        }

        LoginKeyBoardView(requireContext())
    }

}